package com.ityangxu.langchain4j.entity;

public enum ResultCode {
    SUCCESS(0, "操作成功"),
    NOT_FOUND(404, "资源未找到"),
    INTERNAL_ERROR(500, "内部错误");

    private final int code;
    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
